#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File    :   input.py
@Time    :   2024/02/10 10:59:18
@Author  :   chakcy 
@Email   :   947105045@qq.com
@description   :   键盘输入
'''
import pyautogui
from rpa_tool.keyboard.shortcut_keys import shortcut_keys
from rpa_tool.clipboard import set_pyperclip

# 字符输入，不支持中文
def character_input(text):
    pyautogui.typewrite(text)

# 中文输入
def chinese_input(text):
    set_pyperclip(text)
    shortcut_keys('ctrl','v')